import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "@/styles/reset.scss"
import "@/styles/common.scss"
import 'ant-design-vue/dist/reset.css';
import 'virtual:svg-icons-register'
import myPlugin from './plugins'

/**按钮权限判断 */
import { permissions, hasPermission } from '@/utils/btn-permission';

const app = createApp(App);
//通过属性隐藏按钮
app.directive('permission', permissions);
//通过方法
app.config.globalProperties.hasPerm = hasPermission;
app.use(store)
    .use(router)
    .use(myPlugin)
    .mount('#app');
